<?php
$mail='';
	
if($qzone->sidzt){
	if($row['isauto']){
		include"getskey.php";
	}
	@$db->exec("UPDATE ".DB_PREFIX."qqs SET sidzt='1',skeyzt='1' WHERE qid='{$qid}'");
	$mail='SID';
}
if($qzone->skeyzt){
	if($row['isauto']){
		include_once "getskey.php";
	}
	$sql="skeyzt='1'";
	if($row['iszan']){
		$sql.=",iszan=1";
	}
	if($row['isreply']){
		$sql.=",isreply=1";
	}
	if($row['isshuo']){
		$sql.=",isshuo=1";
	}
	if($row['isqd']){
		$sql.=",isqd=1";
	}
	if($row['isdel']){
		$sql.=",isdel=1";
	}
	if($row['iszf']){
		$sql.=",iszf=1";
	}
	@$db->exec("UPDATE ".DB_PREFIX."qqs SET {$sql} WHERE qid='{$qid}'");
	$mail='SKEY';
}
if($_GET['get']){
	print_r($qzone->msg);
	print_r($qzone->error);
}
if($mail){
	$urs = $db->query("SELECT mail FROM ".DB_PREFIX."users where uid='{$row['uid']}' limit 1");
	if($user=$urs->fetch()){
		sendmail($user['mail'],$uin,$mail,$config);
	}
}